package demo.mode.impl;

import demo.mode.IPayMode;

/**
 * 面部识别模式
 * @author ZhouWeiBo
 * @create 2022/6/8
 */
public class FaceScanMode implements IPayMode {

    @Override
    public boolean verify(String userId, Object identity) {
        if (userId != null && "人脸".equals(identity)){
            System.out.println("面部识别校验通过。");
            return true;
        }else{
            System.out.println("面部识别校验失败！");
            return false;
        }
    }

}
